package com.project.server.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("consultation_message")
public class ConsultationMessage {
    @TableId(type = IdType.AUTO)
    private Long id;

    private Long consultationId;
    private Long fromUserId;
    private String content;
    private String type;  // doctor-医生消息 patient-患者消息 system-系统消息
    private LocalDateTime createTime;
}
